aux_source_directory(. EDITOR_SRCS)
add_library(editor_lib ${EDITOR_SRCS})

find_package(GTK2 2.6 REQUIRED gtk)
IF(GTK2_FOUND)
    include_directories(${GTK2_INCLUDE_DIRS})
    add_executable(editor editor.c)
    target_link_libraries(editor ${GTK2_LIBRARIES} editor_lib)
ENDIF(GTK2_FOUND)
